<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>错误</title>
    <!-- === CSS === -->
    <link rel="stylesheet" href="bootstrap-4.0.0-beta/css/bootstrap.min.css">
    <link rel="stylesheet" href="css/ionicons.css">
    <link rel="stylesheet" href="css/now-ui-kit.css">
    <link rel="stylesheet" href="css/app.css">

    <link rel="import" href="main/header.html">
</head>
<body onload="returnMessage();check()">
<!--=== navbar ===-->
<header class="header">
    <nav class="navbar navbar-expand-sm">
        <div class="container">
            <a class="navbar-brand" href="index.html">EShop</a>
            <button class="navbar-toggler navbar-toggler" type="button" data-toggle="collapse" data-target="#example-navbar" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-bar bar1"></span>
                <span class="navbar-toggler-bar bar2"></span>
                <span class="navbar-toggler-bar bar3"></span>
            </button>
            <div class="collapse navbar-collapse" id="example-navbar" data-nav-image="assets/img/blurred-image-1.jpg">
                <ul class="navbar-nav">
                    <li class="nav-item">
                        <a class="nav-link" href="index.html">首页</a>
                    </li>
                    <li class="nav-item active dropdown">
                        <a class="nav-link dropdown-toggle" href="http://localhost" id="navbarDropdownMenuLink1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">商城</a>
                        <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
                            <a class="dropdown-item" href="books.html">纸质书</a>
                            <a class="dropdown-item" href="book.html">电子书</a>
                        </div>
                    </li>
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle" href="http://example.com" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">用户</a>
                        <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
                            <a class="dropdown-item" onclick="check()" href="#" id="login">登陆</a>
                            <a class="dropdown-item" href="cart.html" id="cart">购物车</a>
                            <a class="dropdown-item" href="order.html" id="order">订单管理</a>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
</header>
<div class="row">
    <div class="col-5"></div>
    <div id="showMessage"></div>
</div>
<!--=== footer ===-->
<section class="footer">
    <div class="container">
        <div class="row">
            <div class="col-12">
                <div class="footer-wrap text-center">
                    <div class="footer-tag">All rights Reserved EwenTsai</div>
                </div>
            </div>
        </div>
    </div>
</section>

<script>
    function returnMessage() {
        var arr = getRequest();
        var showMessage = document.getElementById("showMessage");
        showMessage.innerHTML = arr['errorMessage'];//参数名
    }
</script>

<!-- ==== js ==== -->
<script src="js/jquery-3.2.1.slim.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="bootstrap-4.0.0-beta/js/bootstrap.min.js"></script>
<script src="js/app.js"></script>
<script src="js/util.js"></script>
</body>
</html>